package com.real.fact.web.sale.application;

import java.util.List;

import com.real.fact.web.application.AbstractPagedListCommand;
import com.real.fact.web.sale.domain.SaleRepository;
import com.real.fact.web.sale.domain.Seller;

public class ListSellersCommand extends AbstractPagedListCommand<Seller> {
  
  private SaleRepository saleRepository;

  public ListSellersCommand(SaleRepository saleRepository) {
    super();
    this.saleRepository = saleRepository;
  }

  public List<Seller> execute() {
    return saleRepository.findSellers(getPaging());
  }

}
